package cn.edu.nwafu.hjpg.service;

import cn.edu.nwafu.hjpg.entity.Element;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface ElementService {
    List<Object> findAll();
    Page<?> findByPageLike(String keyword,String type, Pageable pageable);
    Page<?> findByType(String type,String keyword,Pageable pageable);
    String addElement(Element element);
    String updateElement(Element element);
    void delElement(Element element);
    Element findById(String id);
    List<Element> findAllByCasNo(String casNo);
}
